import 'package:json_annotation/json_annotation.dart';

part 'perioddaily_bean.g.dart';

@JsonSerializable()
class PerioddailyBean {
  String trainingdate;
  String starttime;
  String endtime;
  String recheckreason;
  String subjcode;
  String coachName;
  String carName;
  String coanum;
  String inscode;
  String periodId;
  int duration;
  int lastinstancetime;
  int reviewstatus;
  int hgTime;
  int syTime;
  int rated;

  PerioddailyBean(
      {this.trainingdate,
      this.starttime,
      this.endtime,
      this.recheckreason,
      this.subjcode,
      this.coachName,
      this.carName,
      this.coanum,
      this.inscode,
      this.periodId,
      this.duration,
      this.lastinstancetime,
      this.reviewstatus,
      this.hgTime,
      this.syTime,
      this.rated});

  PerioddailyBean.fromJson(Map<String, dynamic> json) {
    this.trainingdate = json['trainingdate'];
    this.starttime = json['starttime'];
    this.endtime = json['endtime'];
    this.recheckreason = json['recheckreason'];
    this.subjcode = json['subjcode'];
    this.coachName = json['coachName'];
    this.carName = json['carName'];
    this.coanum = json['coanum'];
    this.inscode = json['inscode'];
    this.periodId = json['periodId'];
    this.duration = json['duration'];
    this.lastinstancetime = json['lastinstancetime'];
    this.reviewstatus = json['reviewstatus'];
    this.hgTime = json['hgTime'];
    this.syTime = json['syTime'];
    this.rated = json['rated'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['trainingdate'] = this.trainingdate;
    data['starttime'] = this.starttime;
    data['endtime'] = this.endtime;
    data['recheckreason'] = this.recheckreason;
    data['subjcode'] = this.subjcode;
    data['coachName'] = this.coachName;
    data['carName'] = this.carName;
    data['coanum'] = this.coanum;
    data['inscode'] = this.inscode;
    data['periodId'] = this.periodId;
    data['duration'] = this.duration;
    data['lastinstancetime'] = this.lastinstancetime;
    data['reviewstatus'] = this.reviewstatus;
    data['hgTime'] = this.hgTime;
    data['syTime'] = this.syTime;
    data['rated'] = this.rated;
    return data;
  }
}
